package cn.lyjuan.first.netty._4_netty_serialize.client;

import cn.lyjuan.first.netty._4_netty_serialize.msg.MyMessage;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.SimpleChannelInboundHandler;

public class ClientHandler extends SimpleChannelInboundHandler<MyMessage>
{
    @Override
    protected void channelRead0(ChannelHandlerContext ctx, MyMessage msg) throws Exception
    {
        System.out.println("client receive: " + msg);
    }
}
